/**
 * 
 */
package org.statewalker.core.server;

import java.util.logging.Level;
import java.util.logging.Logger;

import org.statewalker.core.ForkState;
import org.statewalker.core.IEvent;

/**
 * @author kotelnikov
 */
public abstract class ServerForkState extends ForkState {

    private final Logger log = Logger
        .getLogger(ServerForkState.class.getName());

    @Override
    public ServerContext getContext() {
        return (ServerContext) super.getContext();
    }

    @Override
    protected IEvent handleEvent(Throwable t, String message, IEvent event) {
        log.log(Level.SEVERE, "Error!", t);
        return super.handleEvent(t, message, event);
    }

}
